﻿namespace RStudio.Elevator
{
    /// <summary>
    /// 数据|楼层请求
    /// </summary>
    /// <remarks>
    /// 适用于呼叫器通知任务队列变更的数据结构
    /// </remarks>
    public class DataFloorRequest
    {
        /// <summary>
        /// 呼叫类型
        /// </summary>
        public ElevatorRequestType RequestType { get; set; }

        /// <summary>
        /// 目标楼层
        /// </summary>
        public int FloorNo { get; set; }

        /// <summary>
        /// 选中 或 取消选中
        /// </summary>
        public bool IsSelected { get; set; }


        public DataFloorRequest()
        {
            this.RequestType = ElevatorRequestType.UnKnown;
            this.FloorNo = 1;
            this.IsSelected = false;
        }

        public DataFloorRequest(ElevatorRequestType requestType, int floorNo, bool isSelected)
        {
            this.RequestType = requestType;
            this.FloorNo = floorNo;
            this.IsSelected = isSelected;
        }
    }
}
